num = input("Enter your number ") print("\n") if num.isdigit(): print("User input is Number ") else: print("User input is string ")